import * as utils from '../utils'

function createCourse01 (gl: WebGLRenderingContext) {
  gl.clearColor(0.0, 0.0, 0.0, 1.0)
  gl.clear(gl.COLOR_BUFFER_BIT)
  const vectexShaderSrc = `
    void main() {
        gl_Position = vec4(0.0, 0.0, 0.0, 1.0);
        gl_PointSize = 10.0;
    }
  `

  const fragmentShaderSrc = `
    void main() {
        gl_FragColor  = vec4(1.0, 0.0, 0.0, 1.0);
    }
  `
  utils.initShaders(gl, vectexShaderSrc, fragmentShaderSrc)

  gl.drawArrays(gl.POINTS, 0, 1)
}

export {
  createCourse01
}
